<?php

class Application_Form_AddProduct extends Zend_Form
{

    public function init()
    {
        // Set the method for the display form to POST
        $this->setMethod('post');


        $this->addElement('hidden', 'id_produkt', array(
            'required'   => false,
            'class'      => 'form-control',
            'id'         => 'id_produkt'
        ));

        $this->addElement('text', 'ime', array(
            'label'      => 'Ime produkta',
            'required'   => true,
            'class'      => 'form-control',
        ));

        $this->addElement('text', 'cena', array(
            'label'      => 'Cena produkta',
            'required'   => true,
            'class'      => 'form-control'

        ));

        $this->addElement('text', 'zaloga', array(
            'label'      => 'Zaloga produkta',
            'required'   => true,
            'class'      => 'form-control'
        ));

        $this->addElement('file', 'files[]', array(
            'label'      => 'Glavna slika',
            'required'   => false,
            'class'      => array('file-uploader'),
            'id'         => 'fileupload'

        ));

        $this->addElement('hidden', 'base_image', array(
            'required'   => true,
            'class'      => 'form-control',
            'id'         => 'base_image'
        ));

        $this->addElement('hidden', 'thumbnail', array(
            'required'   => true,
            'class'      => 'form-control',
            'id'         => 'thumbnail'
        ));


        $this->addElement('submit', 'submit', array(
            'label'    => 'Save',
            'class'      => 'form-control'
        ));


        $this->setAttrib('class', 'form-group');
    }


}

